public class BankCard  extends Employee{
   public double money;

    public BankCard(double money) {
        this.money = money;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public BankCard() {
    }

    public void drawMoney(double money) throws Bank{
        double v = this.money - money;
        System.out.println("余额减少"+money+"还剩"+v);
        if (v<money){
            System.out.println("大哥没有那么多钱，咱门别装了");
        }
    }
    double saveMoney(double money) throws Bank{


        this.money = this.money+money;


       if (getMoney()>=5000){
           System.out.println("大哥不能能少存点，这一下我算不过来");
       }
        return  this.money;
    };
}
